package tw.com.softleader.movie.dao;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import tw.com.softleader.movie.entity.Movie;

@Repository
public class MovieDao {
	
	public List<Movie> getAll() {
		List<Movie> movies = new ArrayList<>();
		
		Movie movie1 = new Movie();
		movie1.setId(1L);
		movie1.setName("AAAA");
		
		Movie movie2 = new Movie();
		movie2.setId(2L);
		movie2.setName("BBBB");
		
		movies.add(movie1);
		movies.add(movie2);
		
		return movies;
	}
	

}
